package com.itheima.reggie.common;

import javax.print.DocFlavor;

public class BaseContext {
    private  static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setId(long id){
        threadLocal.set(id);
    }

    public static long getId(){
        return threadLocal.get();
    }
}
